package work.xiaohong.gupiao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import work.xiaohong.gupiao.pojo.Xiaofei;

import java.util.List;

public interface XiaofeiService {

    /**
     * 条件+分页查询Xiaofei
     * @param xiaofei 查询条件
     * @param page 页码
     * @param size 页大小
     * @return 分页结果
     */
    Page findPage(Xiaofei xiaofei, int page, int size);

    /**
     * 分页查询Xiaofei
     * @param page
     * @param size
     * @return
     */
    Page findPage(int page, int size);

    /**
     * 多条件搜索方法Xiaofei
     * @param xiaofei
     * @return
     */
    List<Xiaofei> findList(Xiaofei xiaofei);

    /***
     * 删除Xiaofei
     * @param id
     */
    void delete(Integer id);

    /***
     * 修改Xiaofei数据
     * @param xiaofei
     */
    void update(Xiaofei xiaofei);

    /***
     * 新增Xiaofei
     * @param xiaofei
     */
    void add(Xiaofei xiaofei);

    /**
     * 根据ID查询Xiaofei
     * @param id
     * @return
     */
     Xiaofei findById(Integer id);

    /***
     * 查询所有Xiaofei
     * @return
     */
    List<Xiaofei> findAll();
}
